#pragma once
#include "afxwin.h"

class CModelessDialog : public CDialog
{
	DECLARE_DYNAMIC(CModelessDialog)

public:
	CModelessDialog(UINT nIDTemplate, CWnd* pParent = NULL);
	~CModelessDialog();

	virtual BOOL Create(CWnd *pParentWnd = CWnd::FromHandle(L_GetMainWnd())) = 0;
	virtual BOOL Create(UINT nIDTemplate, CWnd* pParent = NULL);

	DECLARE_MESSAGE_MAP()
	
protected:
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnClose();
	afx_msg void OnNcDestroy();
};

